package com.itheima.Test;

import java.util.concurrent.atomic.AtomicInteger;

public class MyTread01 extends Thread{
    //static  int a  = 0;
    public static AtomicInteger a = new AtomicInteger(0);

    @Override
    public void run() {
        for (int i = 0; i < 10000; i++) {
            //a++;
            a.getAndIncrement();
        }
    }
}
